.tree {
    /*-webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    background-color: #fbfbfb;
    border: 1px solid #999;
    margin-bottom: 10px;
    max-height: 300px;
    min-height: 20px;
    overflow-y: auto;
    padding: 19px;
	*/
}

.tree a {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%}
.tree li {
    list-style-type: none;
    margin: 0;
    padding: 10px 0 0 2px; /* line distance */
    position: relative;
}

.tree li.title {
    padding: 40px 0 0 2px; /* line distance */
}

.tree li::before, .tree li::after {
    content: '';
    left: -20px;
    position: absolute;
    right: auto;
}
.tree li::before {
    /*border-left: 1px solid #999;*/
    bottom: 50px;
    height: 100%;
    top: 0;
    width: 1px;
    -webkit-transition: "border-color 0.1s ease 0.1s";
    -moz-transition: "border-color 0.1s ease 0.1s";
    -o-transition: "border-color 0.1s ease 0.1s";
    transition: "border-color 0.1s ease 0.1s"}
.tree li::after {
    /*border-top: 1px solid #999;*/
    height: 20px;
    top: 13px;
    width: 23px;
    -webkit-transition: "border-color 0.1s ease 0.1s";
    -moz-transition: "border-color 0.1s ease 0.1s";
    -o-transition: "border-color 0.1s ease 0.1s";
    transition: "border-color 0.1s ease 0.1s"}
.tree li span {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #999;
    border-radius: 5px;
    display: inline-block;
    line-height: 14px;
    padding: 8px 20px; /* height and 	width of block */
    text-decoration: none;
    -webkit-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    -moz-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    -o-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
}

.contest_type {
	-moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #999;
    border-radius: 5px;
    display: inline-block;
    padding: 8px 40px; /* height and 	width of block */
    text-decoration: none;
    -webkit-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    -moz-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    -o-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
	
	line-height: 24px;
	padding: 2px 10px; /* height and 	width of block */
	background-color:white;
	text-align:center;
	width:150px;
}

.bull {
	border: 1px solid #329632;
}

.bear {
	border: 1px solid #C80000;
}


.tree li span.stock {
	color: white;
	width:200px;
	text-align:center;
    background-color: #2989FF
}

.tree li.parent_li>span {
    cursor: pointer;
}
.tree li.parent_li>span:hover {
    /*background-color: #df8505;*/
    border: 1px solid #c67605;
    /*color: #fff;*/
}
.tree li.parent_li>span:hover+ul li::after {
    border-top-color: #f89406;
}
.tree li.parent_li>span:hover+ul li::before {
    border-left-color: #f89406;
}
.tree li.parent_li>span:hover+ul li span {
    /*background: #fddfb3;*/
    /*border: 1px solid #faa937;*/
    /*color: #000;
}
.tree li:last-child::before {
    height: 30px;
}
.tree>ul>li::before, .tree>ul>li::after {
    border: 0;
}

